 <include file="application/home/view/public/header.html"/>
      <!-- /.aside -->
      <section id="content">
        <section class="vbox">
          <section class="scrollable padder">
            <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
              <li><a href="index.html"><i class="fa fa-home"></i> 首页</a></li>
            </ul>
            <header class="header bg-light bg-gradient b-b">
            <p>修改资料</p>
          </header>
                <section class="panel panel-default">
                  <div class="panel-body">
                    <div class="clearfix text-center m-t">
                      <div class="inline">
                        <div class="easypiechart"  onclick="getPicture()" data-percent="75" data-line-width="5" data-bar-color="#4cc0c1" data-track-Color="#f5f5f5" data-scale-Color="false" data-size="130" data-line-cap='butt' data-animate="1000">
                          <div class="thumb-lg" id="div1"> <img src="{$member['pic']}" id="avatar" class="img-circle"> </div>
                        </div>
                      <form  method="post" id="imageform" action="{:U('User/updateTx')}" enctype="multipart/form-data">
                        <input type="file" name="user.photo" onchange="setImage(this);" id="photo" style="display: none"/>
                        </form>
                        <div class="h4 m-t m-b-xs">{$member['account']}</div>
                        <small class="text-muted m-b">{$level.name}</small> </div>
                    </div>
                  </div>
                  <footer class="panel-footer bg-info text-center">
                    <div class="row pull-out">
                      <div class="col-xs-4">
                        <a href="#home" data-toggle="tab">
                        <div class="padder-v"> <span class="m-b-xs h3 block text-white">个人信息</span> <small class="text-muted"></small> 
                        </div>
                      </div>

                      <div class="col-xs-4 dk">
                        <a href="#profile" data-toggle="tab">
                        <div class="padder-v"> <span class="m-b-xs h3 block text-white">支付信息</span> <small class="text-muted"></small> </div>
                        </a>
                      </div>

                      <div class="col-xs-4">
                      <a href="#messages" data-toggle="tab">
                        <div class="padder-v"> <span class="m-b-xs h3 block text-white">推荐人信息</span> <small class="text-muted"></small> </div>
                      </a>
                      </div>
                    </div>
                  </footer>
                  <div class="panel-body">
                    <div class="tab-content">
                      <div class="tab-pane active" id="home">
                        <div class="form-group">
                          <label class="control-label col-md-3">账号：</label>
                          <div class="col-md-3">
                            <span class="help-block text_padtop">
                            {$member['account']} </span>
                          </div>
                        </div>
                  <div class="form-group">
                    <label class="control-label col-md-3">真实姓名：</label>
                    <div class="col-md-3">
                      <span class="help-block text_padtop">
                      {$member['name']} </span>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-md-3">电话号码：</label>
                    <div class="col-md-3 ">
                      <span class="help-block text_padtop">
                      {$member['phone']} </span>
                    </div>
                  </div>
                                    <div class="form-group">
                    <label class="control-label col-md-3">性别：</label>
                    <div class="col-md-3">
                      
                      <eq name="member['sex']" value='1'>男</eq>
                      <eq name="member['sex']" value='2'>女</eq>
               
                    </div>
                  </div>

                      </div>
                      <div class="tab-pane" id="profile">
                      <div class="form-group">
                    <label class="control-label col-md-3">支付宝账户：</label>
                    <div class="col-md-3">
                      <span class="help-block text_padtop">
                      {$member['zhifubao']}</span>
                    </div>
                  </div>
                                    <div class="form-group">
                    <label class="control-label col-md-3">银行卡号：</label>
                    <div class="col-md-3">
                      <span class="help-block text_padtop">
                      {$member['bank_card']}</span>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-md-3">开户人：</label>
                    <div class="col-md-3">
                      <span class="help-block text_padtop">
                      {$member['kaihuren']} </span>
                    </div>
                  </div>
                                    <div class="form-group">
                    <label class="control-label col-md-3">微信号：</label>
                    <div class="col-md-3">
                      <span class="help-block text_padtop">
                      {$member['weixin']}</span>
                    </div>
                  </div>
                      </div>
                      <div class="tab-pane" id="messages">
                        <label class="control-label col-md-3">推荐人：</label>
                        <div class="col-md-3">
                          <span class="help-block text_padtop">
                          {$tuijian['account']} </span>
                        </div>

                      </div>
                    </div>
                  </div>
                </section>
          
          </section>
        </section>
        <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a> </section>
      <aside class="bg-light lter b-l aside-md hide" id="notes">
        <div class="wrapper">Notification</div>
      </aside>
    </section>
  </section>
</section>
<script src="__PUBLIC__/home/js/app.v2.js"></script> <!-- Bootstrap --> <!-- App -->
<script src="__PUBLIC__/home/js/charts/easypiechart/jquery.easy-pie-chart.js" cache="false"></script>
<script src="__PUBLIC__/home/js/charts/sparkline/jquery.sparkline.min.js" cache="false"></script>
<script src="__PUBLIC__/home/js/charts/flot/jquery.flot.min.js" cache="false"></script>
<script src="__PUBLIC__/home/js/charts/flot/jquery.flot.tooltip.min.js" cache="false"></script>
<script src="__PUBLIC__/home/js/charts/flot/jquery.flot.resize.js" cache="false"></script>
<script src="__PUBLIC__/home/js/charts/flot/jquery.flot.grow.js" cache="false"></script>
<script src="__PUBLIC__/home/js/charts/flot/demo.js" cache="false"></script>
<script src="__PUBLIC__/home/js/calendar/bootstrap_calendar.js" cache="false"></script>
<script src="__PUBLIC__/home/js/calendar/demo.js" cache="false"></script>
<script src="__PUBLIC__/home/js/sortable/jquery.sortable.js" cache="false"></script>
<script src="__PUBLIC__/js/layer/layer.js" type="text/javascript"></script>
</body>
</html>
<script type="text/javascript">
function getPicture(){
	  $("#photo").click();
}

function setImage() {
		var formData = new FormData();
		var name = $("input").val();
		formData.append("file",$("#photo")[0].files[0]);
		formData.append("name",name);
		$.ajax({ 
			url:"{:U('User/updateTx')}", 
			type:'POST', 
			data:formData, 
			// 告诉jQuery不要去处理发送的数据
			processData:false, 
			// 告诉jQuery不要去设置Content-Type请求头
			contentType:false,
			beforeSend:function(){
			console.log("正在进行，请稍候");
			},
			success : function(data) { 
			if(data.status!=1){
				layer.msg(data.info);   
			}else{
				layer.msg(data.info);
		         setTimeout(function () {
		        	 window.location.reload();
		          }, 2000); 
			}
			}, 
			error : function(data) { 
			console.log("error");
			} 
			});
   		
   		
}


</script>

